package com.loongtech.bi.entity.player;

import com.loongtech.core.util.Time;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "device_four_left")
public class EntityDeviceFourLeft extends TypeLeft implements Serializable {
	private static final long serialVersionUID = 2L;

	@Id
	private Date day; // 日期
	@Id
	private String serverid;
	@Id
	private String channelid;
	@Id
	private String platformid;
    @Column(columnDefinition="int(11) default 0")
    private int devicecreatenum;
    @Column(columnDefinition="int(11) default 0")
    private int logindevicenum;
	@Column(columnDefinition="float default 0.0")
	private float device_four_left;
	
	public String getKey() {
		return Time.getDateStr(day) + "-" + platformid + "-" + channelid + "-" + serverid;
	}

	public Date getDay() {
		return day;
	}

	public void setDay(Date day) {
		this.day = day;
	}

	public String getServerid() {
		return serverid;
	}

	public void setServerid(String serverid) {
		this.serverid = serverid;
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	public String getPlatformid() {
		return platformid;
	}

	public void setPlatformid(String platformid) {
		this.platformid = platformid;
	}

    public int getDevicecreatenum() {
        return devicecreatenum;
    }

    public void setDevicecreatenum(int devicecreatenum) {
        this.devicecreatenum = devicecreatenum;
    }

    public int getLogindevicenum() {
        return logindevicenum;
    }

    public void setLogindevicenum(int logindevicenum) {
        this.logindevicenum = logindevicenum;
    }

    public float getDevice_four_left() {
		return device_four_left;
	}

	public void setDevice_four_left(float device_four_left) {
		this.device_four_left = device_four_left;
	}

}